import { ref } from "vue";
import { defineStore } from "pinia";
import type { UserModel } from "@/common/types/model";
export const useSysStore = defineStore('sys', () => {
    const title = '堆场装卸系统';
    const appType = "electron";   // electron: 桌面应用   web:  网页应用
    const oper = ref<UserModel>({
        id: 0,
        name: '',
        pwflag: false   // 密码强度是否符合要求
    }); // ref的才是  state属性
    
    return {title, appType, oper};
});